/*
 * ButtonService.java
 *
 * Copyright 2012 the original author or authors(ninglong).
 *
 * Licensed under the web-geek, Version 1.0 (the "License");
 *
 */
package org.geek.action.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.geek.action.mapper.ActionMapper;
import org.geek.action.service.IActionService;
import org.geek.common.entity.Criteria;
import org.geek.domain.Action;
import org.springframework.stereotype.Service;


/**
 * <p></p>
 * @author ninglong bhd2973@qq.com
 * @version V1.0
 */
@Service
public class ActionService implements IActionService {

	@Resource
	private ActionMapper actionMapper;
	
	public int countActionByCriteria(Criteria criteria) {
		return actionMapper.countActionByCriteria(criteria);
	}

	public List<Action> getActionByCriteria(Criteria criteria) {
		return actionMapper.getActionByCriteria(criteria);
	}

	public int modAction(Action action) {
		return actionMapper.modAction(action);
	}

	public int addAction(Action action) {
		return actionMapper.addAction(action);
	}

	public int delActionById(int actionId) {
		return actionMapper.delActionById(actionId);
	}

}
